package com.service.Impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dao.SingerDao;
import com.entity.Singer;
import com.entity.Data.PagerData;
import com.entity.Query.SingerQuery;
import com.service.SingerService;

@Service
public class SingerServiceImpl implements SingerService{
	
	@Autowired
	private SingerDao singerDao;
	
	@Override
	public List<Map<String, Object>> querySinger() {
		// TODO Auto-generated method stub
		return singerDao.querySinger();
	}

	@Override
	public Map<String, Object> querySingerId(int singerId) {
		// TODO Auto-generated method stub
		return singerDao.querySingerId(singerId);
	}

	@Override
	public int addSinger(Singer singer) {
		// TODO Auto-generated method stub
		return singerDao.addSinger(singer);
	}

	@Override
	public int editSinger(Singer singer) {
		// TODO Auto-generated method stub
		return singerDao.editSinger(singer);
	}

	@Override
	public int delSinger(int singerId) {
		// TODO Auto-generated method stub
		return singerDao.delSinger(singerId);
	}

	@Override
	public PagerData queryByPage(SingerQuery singerQuery, int curPage, int pageSize) {
		// TODO Auto-generated method stub
		return singerDao.queryByPage(singerQuery, curPage, pageSize);
	}

}
